/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.boatskeeper.client;

import net.customware.gwt.presenter.client.place.Place;
import org.lucava.boatskeeper.client.presenter.boat.BoatsPresenter;
import org.lucava.boatskeeper.client.presenter.boat.EditBoatPresenter;
import org.lucava.boatskeeper.client.presenter.boat.ShowBoatPresenter;
import org.lucava.boatskeeper.client.presenter.user.EditUserPresenter;
import org.lucava.boatskeeper.client.presenter.user.UserAuthPresenter;
import org.lucava.boatskeeper.client.presenter.user.UsersPresenter;

/**
 *
 * @author glenn
 */
public class PlaceMapper {

    public static final Place EDIT_BOAT = new Place("edit-boat");
    public static final Place SHOW_BOAT = new Place("show-boat");
    public static final Place LIST_BOAT = new Place("list-boat");
    public static final Place LIST_USER = new Place("list-user");
    public static final Place EDIT_USER = new Place("edit-user");
    public static final Place SHOW_USER = new Place("show-user");
    public static final Place AUTH_USER = new Place("auth-user");
    public static final Place HOME_PAGE = PlaceMapper.LIST_BOAT;

    static void configure() {
        BoatsPresenter.PLACE = PlaceMapper.LIST_BOAT;
        EditBoatPresenter.PLACE = PlaceMapper.EDIT_BOAT;
        ShowBoatPresenter.PLACE = PlaceMapper.SHOW_BOAT;

        UserAuthPresenter.PLACE = PlaceMapper.AUTH_USER;
        UsersPresenter.PLACE = PlaceMapper.LIST_USER;
        EditUserPresenter.PLACE = PlaceMapper.EDIT_USER;
    }
}
